import request from '@/utils/request'
import linq from 'linq'
export async function get开设专业(XXID,CJPC){
    //
    let res =  await request({
        url: `/Kszy?$filter=XXID eq '${XXID}' and CJPC eq '${CJPC}' and 审核状态 eq '通过' and (是否删除 eq 0 or 是否删除 eq null)`,
        method: 'get',
      })
    return res.data.value;
    //
}
export async function bulkAdd开设专业(data){
    //
    
    let res =  await request({
        url: '/Kszy/BulkAddKszy',
        method: 'post',
        data:data
      })
    return res.data.value;
    //
    
  }
export async function update开设专业(model){
    let res =  await request({
        url: `/Kszy(${model.ID})`,
        method: 'put',
        data: model
      })
      return res.data;
}
export async function delete开设专业(model){
    let res = await  request({
        url: `/Kszy/${model.ID}`,
        method: 'delete',
      })
      return res.data;
}
export async function add开设专业(model){
   
    let res =  await request({
      url: '/Kszy',
      method: 'post',
      data: model,
    })
    return res.data;
}